<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Auth\Controller\Index' => 'Auth\Controller\IndexController',
            'Auth\Controller\Profile' => 'Auth\Controller\ProfileController',
        ),
    ),
    'router' => array(
        'routes' => array(
            'auth' => array(               
                        'type'    => 'Segment',
                        'options' => array(
                            'route'    => '/auth[/:action]',
                            'constraints' => array(                          
                                'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                            ),
                            'defaults' => array(
                                '__NAMESPACE__' => 'Auth\Controller',
                                'controller' => '\Index',
                                
                                'action' => 'index'
                            ),
                        ),
                    ),
            
            'profile' => array (
                'type' => 'Segment',
                'options' => array (
                    'route' => '/profile[/:action]',
                    'constraints' => array (
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        
                    ),
                    'defaults' => array (
                        '__NAMESPACE__' => 'Auth\Controller',
                        'controller' => '\Profile',
                        'action' => 'profile'
                    )
                ),
                'may_terminate' => true,
            ),
                ),
    ),
    
    'view_manager' => array(
        'template_path_stack' => array(
            'Auth' => __DIR__ . '/../view',
        ),
    ),
);
